package cn.cs.mapper;

import cn.cs.pojo.Agent;
import cn.cs.pojo.CsPerson;
import cn.cs.pojo.SettlementDetailed;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;


@Mapper
public interface WithdrawalApplyMapper {

	public Map<String, String> getAppSettlementById(@Param("id") String id)throws Exception;

	public Map<String, String> getSettlementDetailedById(@Param("id") String id)throws Exception;

	public Map<String, String> getShopSettlementDetailedById(@Param("id") String id)throws Exception;

	public Integer updateState(@Param("id") String id, @Param("personId") String personId)throws Exception;

	public Integer updateOrderState(@Param("id") String id)throws Exception;

	public Integer updateOrderStateAAgent(@Param("id") String id)throws Exception;

	public Integer updateOrderStateBAgent(@Param("id") String id)throws Exception;

	public CsPerson findPersonByName(@Param(value = "username") String username);

	public Agent getAgentById(@Param(value = "id") String id);

	public Integer insertSettlementDetailed(SettlementDetailed settlementDetailed)throws Exception;

	public Integer insertRepairOrderList(List<Map<String, String>> list)throws Exception;

	public Integer insertCapitalPoolDetails(Map<String, Object> map)throws Exception;

	public Map<String, Object> getSetPolicyByType(String type);

	public Map<String, Object> getProportionSetting();

	public List<Map<String, Object>> getQgTradeListByMapPage(Map<String, Object> param)throws Exception;

	public Integer getQgTradeCountByMap(Map<String, Object> param)throws Exception;

	public List<Map<String, Object>> getAppOrderAgentAByMap(Map<String, Object> param) throws Exception;

	public List<Map<String, Object>> getAppOrderAgentBByMap(Map<String, Object> param) throws Exception;

	public Double getAppOrderAgentAProfitAll(Map<String, Object> param) throws Exception;

	public Double getAppOrderAgentBProfitAll(Map<String, Object> param) throws Exception;

}
